package com.xmzgxcl.java202108.controller;

import com.xmzgxcl.java202108.entity.Department;
import com.xmzgxcl.java202108.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/department")
/**
 * 部门信息数据查询、数据操纵控制类
 */
public class DepartmentController {
    /*@Autowired
    DepartmentService departmentService;*/

    @RequestMapping("/insert")
    public String insert(Department department){
        //添加新部门核心代码
        return "";
    }

    @RequestMapping("/delete")
    public String delete(Department department){
        //删除已有部门核心代码
        return "";
    }

    @RequestMapping("/update")
    public String update(Department department){
        //修改部门信息核心代码
        return "";
    }

    @RequestMapping("/selectOne")
    public String selectOne(Department department){
        //查询指定部门信息
        return "";
    }

    @RequestMapping("/selectAll")
    public String selectAll(){
        //查询所有部门信息核心代码
        return "";
    }
}
